/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2024-2024.
 * Description: header for rtos kexec hardening for security
 * Author: chenjingwen
 * Create: 2024-02-02
 */

#ifdef CONFIG_RTOS_KEXEC_HARDENING
int check_dtb_integrity(const void *dtb_addr, unsigned int dtb_size);
#else
static inline int check_dtb_integrity(const void *dtb_addr, unsigned int dtb_size)
{
	return 0;
}
#endif

#ifdef CONFIG_RTOS_HAL_KEXEC_CMDLINE_PROCESS
int kexec_cmline_process(struct kimage *image, int kernel_fd);
#endif
